﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WCFAuthorization.Server
{
    public partial class FormLogin : Form
    {
        public FormLogin()
        {
            InitializeComponent();
        }

        bool _power = false;
        public bool IsPower
        {
            get
            {
                return _power;
            }
        }

        private void btnLogin_Click(object sender, EventArgs e)
        {
            if (txtPass.Text.Equals("3.1415926") ||
                txtPass.Text.Equals("..."))
            {
                if (txtPass.Text.Equals("..."))
                {
                    _power = true;
                }
                DialogResult = DialogResult.OK;
            }
            else
            {
                MessageBox.Show("密码错误!");
            }
        }
    }
}
